projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2790bf6
)
Fix the behaviour of the 'run' command
author
Timo Ketola
<
[email protected]
>
Sun, 22 Apr 2012 23:57:27 +0000
(23:57 +0000)
committer
Wolfgang Denk
<
[email protected]
>
Mon, 23 Apr 2012 20:07:00 +0000
(22:07 +0200)
If one command fails, 'run' command should terminate and not execute
any remaining variables.
Signed-off-by: Timo Ketola <
[email protected]
>
Tested-by: Wolfgang Denk <
[email protected]
>
Tested-by: Simon Glass <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
common/main.c
patch
|
blob
|
history
diff --git
a/common/main.c
b/common/main.c
index db181d319b85f44fb88de1204601c885adb3cfdb..3b9e39a9805b9da3831edef2177c44b00c72893e 100644
(file)
--- a/
common/main.c
+++ b/
common/main.c
@@
-1338,7
+1338,8
@@
static int builtin_run_command(const char *cmd, int flag)
continue;
}
- rc = cmd_process(flag, argc, argv, &repeatable);
+ if (cmd_process(flag, argc, argv, &repeatable))
+ rc = -1;
/* Did the user stop this? */
if (had_ctrlc ())